package com.QLM.QLMFile.service;

import com.QLM.QLMFile.Vo.Details;
import com.QLM.QLMFile.mapper.AddMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Service("AddService")
public class AddService {
    @Resource
    private AddMapper addMapper;

    public IPage AddUserFile(int page , int limit , Map m){
        Page p = new Page(page,limit);
        IPage addUser = addMapper.save(p , m);
        return addUser;
    }
}
